﻿#include"stdafx.h"
#include "ServerDB.h"
ServerDB::ServerDB() {
	fileName = "data/system/root.db";
	cur_db = "db";
	//把root.db载入内存
	file.Open(fileName, CFile::modeReadWrite | CFile::typeBinary, NULL);
	DB_Struct db;
	while (file.Read(&db, 396) != 0) {
		string temp = db.name;
		if(temp!="system")
		dbVector.push_back(db);
	}
	file.Close();
};
ServerDB::~ServerDB() {
}


